package io.bluefw.blueui.dsl.render.widget;

import java.util.List;

import javax.ws.rs.WebApplicationException;

import io.bluefw.blueui.dsl.ToolbarItem;
import io.bluefw.blueui.dsl.render.Render;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ToolbarWidget extends Render {
	private List<ToolbarItem> items;
	
	public ToolbarWidget(String templateName) {
		super(templateName);
	}

	public StringBuffer render() throws WebApplicationException {
		return freemarker.render(this, this.getTemplateName());
	}
}
